class Users < ActiveRecord::Base
  # attr_accessible :email, :password, :password_confirmation

  # attr_accessor :password
  # before_save :encrypt_password
  #
  # validates_confirmation_of :password
  # validates_presence_of :password, :on => :create
  # validates_presence_of :email
  # validates_uniqueness_of :email

  def self.authenticate(eml, pwd)
    Users.find_by(email:eml,password:pwd)
  end
end
